package com.example.adminservice.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adminservice.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.adminservice.entity.BookAudit;
import com.example.adminservice.entity.ChapterAudit;
import com.example.commom.page.PageInfo;
import com.example.feign.result.AjaxResult;

import java.util.HashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 软工2104-李家强-2100770248
 * @since 2023-09-28
 */
public interface AdminService extends IService<Admin> {
    Admin getUserByName(String username);

    HashMap<String, Object> successLogin(Admin admin);

    AjaxResult exit(String token);

    AjaxResult approveBook(BookAudit bookAudit);

    AjaxResult approveChapter(ChapterAudit chapterAudit);

    AjaxResult getBookHistory(String token, PageInfo pageInfo);

    AjaxResult getChapterHistory(String token, PageInfo pageInfo);
}
